package java68_7;

public class HeadQuarater2 {
    private String name;
    public HeadQuarater2(String n){
        name=n;
    }
    public void judge(Teacher j){
        System.out.println("总部来的"+name+"来考察");
        j.selfIntro();
        j.giveLession();
        System.out.println(name+"觉得"+j.getName()+"很优秀");
    }

    public static void main(String[] args) {
        JavaTeacher j1=new JavaTeacher("老刘","合肥中心");
        DocNetTeacher j2=new DocNetTeacher("小崔","杭州中心");
        HeadQuarater2 h=new HeadQuarater2("孙老师");
        h.judge(j1);
        h.judge(j2);
    }
}
